package com.shrct.businessprocess.customerservice.impl;

import com.shrct.businessprocess.customerservice.RCFaultReportFaultType;
import com.shrct.businessprocess.customerservice.proxy.RCFaultReportFaultTypeProxy;
import edu.fudan.langlab.domain.code.impl.CodeImpl;
import edu.fudan.mylang.pf.IObjectFactory;
import javax.persistence.DiscriminatorValue;
import javax.persistence.Entity;
import org.eclipse.xtext.xbase.lib.Procedures.Procedure1;

@Entity
@DiscriminatorValue("RCFAULTREPORTFAULTTYPE_TYPE")
public class RCFaultReportFaultTypeImpl extends CodeImpl implements RCFaultReportFaultType {
  public RCFaultReportFaultTypeImpl() {
    super();
  }
  
  public static RCFaultReportFaultType create(final IObjectFactory objectFactory) {
    com.shrct.businessprocess.customerservice.RCFaultReportFaultType rCFaultReportFaultType = new com.shrct.businessprocess.customerservice.impl.RCFaultReportFaultTypeImpl(
    );
    objectFactory.create(rCFaultReportFaultType);
    return rCFaultReportFaultType;			
    
  }
  
  public static RCFaultReportFaultType createRCFaultReportFaultTypeImpl(final IObjectFactory objectFactory, final Procedure1<RCFaultReportFaultType> init) {
    com.shrct.businessprocess.customerservice.RCFaultReportFaultType rCFaultReportFaultType = new com.shrct.businessprocess.customerservice.impl.RCFaultReportFaultTypeImpl(
    );
    objectFactory.create(rCFaultReportFaultType);
    init.apply(rCFaultReportFaultType);
    
    return rCFaultReportFaultType;			
    
  }
  
  public RCFaultReportFaultTypeProxy toProxy() {
    com.shrct.businessprocess.customerservice.proxy.RCFaultReportFaultTypeProxy proxy = new com.shrct.businessprocess.customerservice.proxy.RCFaultReportFaultTypeProxy();
    proxy.setId(this.getId());
    if(this instanceof edu.fudan.mylang.pf.INamedModelObject){
    	proxy.setName(((edu.fudan.mylang.pf.INamedModelObject)this).getEntityName());
    }
    return proxy;
    
  }
}
